home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Fonts / FixedFaceMetrics.h < prev    next >
Text File  |  2000-06-23  |  560b  |  26 lines

  1. // FixedFaceMetrics.h
  2.  
  3. #ifndef FixedFaceMetrics_h
  4. #define FixedFaceMetrics_h
  5.  
  6. #include <Fonts.h>
  7.  
  8. class Face;
  9.  
  10. class FixedFaceMetrics: public FMetricRec
  11.   {
  12.     public:
  13.         FixedFaceMetrics()                            {}
  14.         FixedFaceMetrics( const Face& );
  15.         
  16.         static const FixedFaceMetrics& Current();
  17.         
  18.         Fixed Ascent() const                { return ascent; }
  19.         Fixed Descent() const            { return descent; }
  20.         Fixed Leading() const            { return leading; }
  21.         Fixed UnleadedHeight() const    { return ascent + descent; }
  22.         Fixed LeadedHeight() const        { return ascent + descent + leading; }
  23.   };
  24.  
  25. #endif
  26.